#!/bin/bash
rm ~/pcLog.txt
cd peercafe/components/
make
#sdk=./../../xpcom/mozilla/obj-i686-pc-linux-gnu/dist
#sdk=./../../gecko_sdk_osx

# page timer, how many second spent on a single page?
#$sdk/bin/xpidl -m typelib -w -v -I $sdk/idl -e pcPageTimer.xpt pcPageTimer.idl

# logger
#$sdk/bin/xpidl -m typelib -w -v -I $sdk/idl -e pcLogger.xpt pcLogger.idl

cd ../..

cd peercafe/
zip -r peercafe.xpi . -x \*.svn\* -x \*jsunit\*
mv ./peercafe.xpi ~/Desktop/peercafe.xpi
cd ..
